<#assign basePath=request.contextPath>
<#include "${basePath}/include.ftl" >
<body>
    <div class="layui-container" style="padding: 15px 20px 20px 20px;">
        <form class="layui-form layui-form-pane" action="" id="form">

            <div class="layui-form-item">
                <label class="layui-form-label layui-input-required">上级目录:</label>
                <div class="layui-input-block">
                    <input type="text" autocomplete="off" placeholder="请选择上级部门" class="layui-input" readonly="true"
                           style="background-color: #eee;" onclick="setParentId()" id="parentName" validate="required" value="主目录">
                    <!-- 部门id  -->
                    <input type="hidden" name="parentId" autocomplete="off" class="layui-input" readonly="true"
                           style="background-color: #eee;"  id="parentId" value="0">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label layui-input-required">部门名称:</label>
                <div class="layui-input-block">
                    <input type="text" name="deptName" placeholder="请输入部门名称" autocomplete="off" class="layui-input"  validate="required">
                </div>
            </div>

            <div class="layui-form-item" pane="">
                <label class="layui-form-label layui-input-required">部门状态:</label>
                <div class="layui-input-block">
                    <input type="radio" name="status" value="0" title="正常" checked="">
                    <input type="radio" name="status" value="1" title="停用">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label layui-input-required">负责人:</label>
                <div class="layui-input-block">
                    <input type="text" name="leader" autocomplete="off" placeholder="请输入负责人" class="layui-input" validate="required">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label layui-input-required">联系电话:</label>
                <div class="layui-input-block">
                    <input type="number" name="phone" autocomplete="off" placeholder="请输入联系电话" class="layui-input" validate="required|telphone">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label layui-input-required">邮箱:</label>
                <div class="layui-input-block">
                    <input type="text" name="email" autocomplete="off" placeholder="请输入邮箱" class="layui-input" validate="required|email">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label layui-input-required">显示排序:</label>
                <div class="layui-input-block">
                    <input type="number" name="orderNum" autocomplete="off" placeholder="请输入显示排序" class="layui-input" validate="required">
                </div>
            </div>

        </form>
    </div>
</body>
<script type="text/javascript" src="${baseApp}/system/dept/dept_insert.js"></script>
